﻿using Che.Domain.Entity.ECountry;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Che.Domain.Entity.EPlayers
{
    [SugarTable("Players")]
    public class Players
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(Length = 100)]
        public string Name { get; set; }

        [SugarColumn(Length = 50)]
        public string Position { get; set; } // 如 "Forward", "Midfielder"

        public int Age { get; set; }
        public DateTime day { get; set; }
        // 外键字段
        public int CountryId { get; set; }//所属国家ID
        public int FootballId { get; set; }//所属球队ID

        // 导航属性（多对一：一个球员属于一个国家）
   //     [Navigate(NavigateType.ManyToOne, nameof(CountryId))]
    //    public Country Country { get; set; }
    }

}
